<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <title>添加记录 - HiLover</title>
    <link rel="stylesheet" href="/static/css/style.css">
</head>
<body>
    <jsp:include page="../common/header.jsp"/>
    
    <main class="main">
        <div class="form-container">
            <h2>添加记录</h2>
            <form id="addTimelineForm" class="form">
                <div class="form-group">
                    <label>日期</label>
                    <input type="date" name="eventDate" required>
                </div>
                <div class="form-group">
                    <label>内容</label>
                    <textarea name="content" rows="4" required></textarea>
                </div>
                <div class="form-group">
                    <label>图片（可选，最多3张）</label>
                    <div class="image-upload">
                        <input type="file" name="images" accept="image/*" multiple>
                        <div class="image-preview"></div>
                    </div>
                </div>
                <div class="form-group">
                    <button type="submit">添加</button>
                </div>
            </form>
        </div>
    </main>
    
    <jsp:include page="../common/footer.jsp"/>
    <script src="/static/js/timeline-add.js"></script>
</body>
</html> 